<?xml version="1.0" encoding="UTF-8"?>
<definitions id="taskAssigneeExample"
 xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
 targetNamespace="Examples">

 <process id="process1" name="Process1" isExecutable="true">

  <startEvent id="startEvent" />

  <serviceTask id="service1" camunda:async="true"
   camunda:expression="#{true}">
   <multiInstanceLoopCharacteristics
    isSequential="true">
    <loopCardinality>2</loopCardinality>
   </multiInstanceLoopCharacteristics>
  </serviceTask>
  <serviceTask id="service2" camunda:expression="#{true}" camunda:async="true">
   <multiInstanceLoopCharacteristics
    isSequential="false">
    <loopCardinality>2</loopCardinality>
   </multiInstanceLoopCharacteristics>
  </serviceTask>
  <userTask id="user1" name="User Task"/>

  <endEvent id="endEvent" />

  <sequenceFlow id="t1" targetRef="service1" sourceRef="startEvent" />
  <sequenceFlow id="t2" targetRef="service2" sourceRef="service1" />
  <sequenceFlow id="t3" targetRef="user1" sourceRef="service2" />
  <sequenceFlow id="t4" targetRef="endEvent" sourceRef="user1" />

 </process>
</definitions>
